<?xml version='1.0' encoding='UTF8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      
      
      >

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="./resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <title>Sistema </title>

    </h:head>

    <h:body  >


        <div id="top" class="top">
            <ui:insert name="top">
                <h:form>

                    <div style="background-image: url('resources/imgs/cabecalho.png');width: 100%; height:50px ;">
                        <h:outputLink value="#{facesContext.externalContext.requestContextPath}/j_spring_security_logout" style="color: #FFF; background: red;  padding: 10px; float: right;">
                            <h:outputText value="Sair"/>
                        </h:outputLink>
                    </div>

                </h:form>
            </ui:insert>
        </div>
        <div>
            <div id="left" >
                <ui:insert name="left" >
                    <h:form>


                        <p:growl id="messages"/>   

                        <p:menu  style="width: 95%; height: 700px">  
                            <p:submenu label="Tabela Simples" >  
                             

                                 
                                    <p:menuitem value="Cadastrar" url="Cadastrar.jsf" update="messages"  />  
                            </p:submenu>  
                            <p:submenu label="Tabelas que Recebem Relacionamento">  
                                <p:menuitem value="Save" actionListener="#{menuBean.save}" update="messages" icon="ui-icon-disk" />  
                                <p:menuitem value="Update" actionListener="#{menuBean.update}" update="messages" icon="ui-icon-arrowrefresh-1-w"/>  
                            </p:submenu> 
                            <p:submenu label="Tabelas Associativas">  
                                <p:menuitem value="Save" actionListener="#{menuBean.save}" update="messages" icon="ui-icon-disk" />  
                                <p:menuitem value="Update" actionListener="#{menuBean.update}" update="messages" icon="ui-icon-arrowrefresh-1-w"/>  
                            </p:submenu> 


                        </p:menu>  

                    </h:form>
                    <p:ajaxStatus>  
                        <f:facet name="start">  
                            <p:graphicImage value="resources/imgs/loading.gif" />  
                        </f:facet>  
                        <f:facet name="complete">  
                            <h:outputText value="" />  
                        </f:facet>  
                    </p:ajaxStatus>  
                </ui:insert>
            </div>
            <div id="content" class="left_content">
                <ui:insert name="content">

                </ui:insert>
            </div>

        </div>
    </h:body>

</html>
